package com.mbc.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

@Configuration
public class SaTokenConfig extends WebMvcConfigurationSupport {

    @Autowired
    private SaTokenInterceptor saTokenInterceptor;

//    public void addInterceptor(InterceptorRegistry registry){
//        registry.addInterceptor(saTokenInterceptor)
//                .addPathPatterns("/**")
//                .excludePathPatterns("/user/login");
//    }
}
